From 47dafed1a5948ddb6484966159b494bca1cf1e47 Mon Sep 17 00:00:00 2001
From: Myy <myy@miouyouyou.fr>
Date: Mon, 31 Jul 2017 10:20:41 +0000
Subject: [PATCH] rk3288.dtsi Add VPU MMU clock names

And enable the VPU services by default.

Signed-off-by: Myy <myy@miouyouyou.fr>
---
 arch/arm/boot/dts/rk3288.dtsi | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 6bdf30a5..5762b3fd 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -1186,7 +1186,7 @@
 		iommus = <&vpu_mmu>;
 		iommu_enabled = <1>;
 		dev_mode = <0>;
-		status = "disabled";
+		status = "okay";
 		/* 0 means ion, 1 means drm */
 		allocator = <1>;
 	};
@@ -1196,6 +1196,8 @@
 		reg = <0xff9a0800 0x100>;
 		interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
 		interrupt-names = "vpu_mmu";
+		clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
+		clock-names = "aclk", "hclk";
 		power-domains = <&power RK3288_PD_VIDEO>;
 		#iommu-cells = <0>;
 	};
@@ -1237,7 +1239,7 @@
 		dev_mode = <1>;
 		iommus = <&hevc_mmu>;
 		iommu_enabled = <1>;
-		status = "disabled";
+		status = "okay";
 		/* 0 means ion, 1 means drm */
 		allocator = <1>;
 	};
@@ -1247,6 +1249,11 @@
 		reg = <0xff9c0440 0x40>, <0xff9c0480 0x40>;
 		interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
 		interrupt-names = "hevc_mmu";
+		clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>,
+			<&cru SCLK_HEVC_CORE>,
+			<&cru SCLK_HEVC_CABAC>;
+		clock-names = "aclk", "hclk", "clk_core",
+			"clk_cabac";
 		power-domains = <&power RK3288_PD_HEVC>;
 		#iommu-cells = <0>;
 	};
-- 
2.13.0

